<?php
$box_name = 'dt_post_thumb_opts';
$opts = get_post_meta( get_the_ID(), $box_name. '_options', true );

$defaults = array(
    'quality'   => 100,
    'zc'        => true,
    'zc_align'  => 'c',
    'embed'     => ''
);
$opts = wp_parse_args( $opts, $defaults );
?>

<?php
$post_t_id = get_post_thumbnail_id( get_the_ID() );
$thumb = dt_get_thumbnail(
    array(
        'img_id'	=> $post_t_id,
        'width'		=> 290,
        'height'	=> 150,
        'upscale'	=> $opts['zc'],
        'zc_align'  => $opts['zc_align'],
        'quality'   => $opts['quality']
    )
);

$href = get_permalink();
?>

<a class="col_1-3 gal" href="<?php echo esc_attr($href); ?>">
    <div class="loading-image">
        <img src="<?php echo $thumb['thumnail_img']; ?>" alt="<?php echo esc_attr(get_the_title()); ?>"/>
    </div>
    <div class="mask"></div>
    <div class="desc">
        <h4><?php the_title(); ?></h4>
        <div class="desc_text"><?php the_excerpt(); ?></div>
    </div>
</a>